package com.mall.ibatis.persistence.sqlmapdao;

import java.util.List;

import com.mall.ibatis.bean.OperatorStatus;
import com.mall.ibatis.persistence.iface.OperatorStatusDAO;

import com.ibatis.dao.client.DaoManager;

public class OperatorStatusSqlMapDAO extends BaseSqlMapDao implements OperatorStatusDAO
{
	public OperatorStatusSqlMapDAO(DaoManager daoManager)
	{
		super(daoManager);
	}
	
	@SuppressWarnings("unchecked")
	public List<OperatorStatus> selectAllOperatorStatus() throws Exception
	{
		return (List<OperatorStatus>)queryForList("select_operatorstatus_list",null);
	}
	
	public OperatorStatus selectOperatorStatus(OperatorStatus operatorStatus)  throws Exception
	{
		return (OperatorStatus)queryForObject("select_operatorstatus", operatorStatus);
	}
	
	public void insertOperatorStatus(OperatorStatus operatorStatus) throws Exception
	{
		insert("insert_operatorstatus",  operatorStatus);
	}
	public void updateOperatorStatus(OperatorStatus operatorStatus) throws Exception
	{
		update("update_operatorstatus",  operatorStatus);
	}
	
	public void deleteOperatorStatus(OperatorStatus operatorStatus) throws Exception
	{
		delete("delete_operatorstatus",  operatorStatus);
	}
}
